module.exports = {
  publicPath: "./",
  outputDir: undefined,
  assetsDir: undefined,
  runtimeCompiler: undefined,
  productionSourceMap: undefined,
  parallel: undefined,
  chainWebpack: config => {
    // remove the prefetch plugin
    config.plugins.delete("prefetch");
  },
  devServer: {
    proxy: {
      '/api': { 
        target: 'https://api.baidu.com', //对应服务器地址
        changeOrigin: true, //允许跨域
        ws: true,
        pathRewrite: {
        '^/api': ''
        }
      },
      '/vi': { 
        target: 'http://localhost:88/api', //对应服务器地址
        changeOrigin: true, //允许跨域
        ws: true,
        pathRewrite: {
        '^/vi': ''
        }
      }
    }
  }
};
